/**
 * @(#)QueryTable.java 2010-4-1
 * 
 * Copyright (c) 2000-2010 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */

package com.szf.base.dao;

public class QueryTable {
	private String tableName;
	private String aliasName;

	public QueryTable() {
	}

	public QueryTable(String tableName, String aliasName) {
		this.tableName = tableName;
		this.aliasName = aliasName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getAliasName() {
		return aliasName;
	}

	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	/**
	 * 是否有使用别名
	 * @return
	 */
	public boolean useAlias() {
		return !tableName.equalsIgnoreCase(aliasName);
	}
}
